/*
   This file is part of the 'Let's Do Stuff Together' project
   http://code.google.com/p/dostufftogether/

   Copyright 2010 Christoph Fuchs, Stefan Thaler

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
 */
package com.appspot.android2gather.location;

import android.graphics.drawable.Drawable;
import android.view.MotionEvent;

import com.google.android.maps.MapView;

/**
 * ItemizedOverlay implementation to show markers on a MapView.
 * 
 * @author Christoph 'Gigi' Fuchs
 * 
 */
public class UnclickableItemizedOverlay extends ClickableItemizedOverlay {

	/**
	 * Creates a new unclickable itemized overlay. Used to show a single marker
	 * on the map. No additional markers may be added.
	 * 
	 * @param defaultMarker
	 *            the default marker to use
	 */
	public UnclickableItemizedOverlay(Drawable defaultMarker) {
		super(boundCenterBottom(defaultMarker));
	}

	/* (non-Javadoc)
	 * @see com.google.android.maps.ItemizedOverlay#onTouchEvent(android.view.MotionEvent, com.google.android.maps.MapView)
	 */
	@Override
	/**
	 * Overwrite the onTouchEvent method in order to make this map unclickable.
	 */
	public boolean onTouchEvent(MotionEvent event, MapView mapView) {
        return false;
	}

}
